package com.jpro.module.system.enums;

/**
 * System 操作日志枚举
 * 目的：统一管理，也减少 Service 里各种“复杂”字符串
 *
 * @author JPROCMS
 */
public interface LogRecordConstants {

    // ======================= SYSTEM_USER 用户 =======================

    String SYSTEM_USER_TYPE = "SYSTEM 用户";
    String SYSTEM_USER_CREATE_SUB_TYPE = "创建用户";
    String SYSTEM_USER_CREATE_SUCCESS = "创建了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_SUB_TYPE = "更新用户";
    String SYSTEM_USER_UPDATE_SUCCESS = "更新了用户【{{#user.nickname}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_USER_DELETE_SUB_TYPE = "删除用户";
    String SYSTEM_USER_DELETE_SUCCESS = "删除了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_PASSWORD_SUB_TYPE = "重置用户密码";
    String SYSTEM_USER_UPDATE_PASSWORD_SUCCESS = "将用户【{{#user.nickname}}】的密码从【{{#user.password}}】重置为【{{#newPassword}}】";

    String SYSTEM_USER_UPDATE_STATUS_SUB_TYPE = "修改用户状态";
    String SYSTEM_USER_UPDATE_STATUS_SUCCESS = "将用户【{{#user.nickname}}】的状态 重置为【{{#status==1?'禁用':'启用'}}】";
    String SYSTEM_USER_ASSIGN_ROLE_SUB_TYPE = "更新用户角色";
    String SYSTEM_USER_ASSIGN_ROLE_SUCCESS = "更新了用户角色【{{#user.nickname}}】";

    // ======================= SYSTEM_ROLE 角色 =======================
    String SYSTEM_MEMBER_TYPE = "SYSTEM 会员";

    String SYSTEM_MEMBER_CREATE_SUB_TYPE = "创建会员";
    String SYSTEM_MEMBER_CREATE_SUCCESS = "创建了会员【{{#user.username}}】";
    String SYSTEM_MEMBER_UPDATE_SUB_TYPE = "更新会员";
    String SYSTEM_MEMBER_UPDATE_SUCCESS = "更新了会员【{{#user.username}}】: {_DIFF{#updateReqVO}}";

    String SYSTEM_MEMBER_UPDATE_PASSWORD_SUB_TYPE = "重置会员密码";
    String SYSTEM_MEMBER_UPDATE_PASSWORD_SUCCESS = "将会员【{{#user.username}}】的密码 重置为【{{#newPassword}}】";

    String SYSTEM_MEMBER_DELETE_SUB_TYPE = "删除会员";
    String SYSTEM_MEMBER_DELETE_SUCCESS = "删除了会员【{{#user.username}}】";

    String SYSTEM_MEMBER_ASSIGN_GROUP_SUB_TYPE = "分配会员用户组";
    String SYSTEM_MEMBER_ASSIGN_GROUP_SUCCESS = "分配会员用户组【{{#user.username}}】";

    // ======================= SYSTEM_ROLE 角色 =======================

    String SYSTEM_ROLE_TYPE = "SYSTEM 角色";
    String SYSTEM_ROLE_CREATE_SUB_TYPE = "创建角色";
    String SYSTEM_ROLE_CREATE_SUCCESS = "创建了角色【{{#role.name}}】";
    String SYSTEM_ROLE_UPDATE_SUB_TYPE = "更新角色";
    String SYSTEM_ROLE_UPDATE_SUCCESS = "更新了角色【{{#role.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_ROLE_DELETE_SUB_TYPE = "删除角色";
    String SYSTEM_ROLE_DELETE_SUCCESS = "删除了角色【{{#role.name}}】";

    String SYSTEM_ROLE_MENU_SUB_TYPE = "更新角色菜单权限";

    String SYSTEM_ROLE_MENU_UPDATE_SUCCESS = "更新了角色菜单权限【{{#role.name}}】";
    String SYSTEM_ROLE_DATA_SUB_TYPE = "更新角色数据权限";
    String SYSTEM_ROLE_DATA_UPDATE_SUCCESS = "更新了角色数据权限【{{#role.name}}】";

    String SYSTEM_ROLE_CONTENT_SUB_TYPE = "更新角色内容权限";
    String SYSTEM_ROLE_CONTENT_UPDATE_SUCCESS = "更新了角色内容权限【{{#role.name}}】";

    String SYSTEM_ROLE_CHANNEL_SUB_TYPE = "更新角色栏目权限";
    String SYSTEM_ROLE_CHANNEL_UPDATE_SUCCESS = "更新了角色栏目权限【{{#role.name}}】";

    String SYSTEM_ROLE_SITE_SUB_TYPE = "更新角色站点权限";
    String SYSTEM_ROLE_SITE_UPDATE_SUCCESS = "更新了角色站点权限【{{#role.name}}】";
    String SYSTEM_ROLE_WORKBENCH_SUB_TYPE = "更新角色工作台设置";
    String SYSTEM_ROLE_WORKBENCH_UPDATE_SUCCESS = "更新了角色工作台设置【{{#role.name}}】";

    // ======================= SYSTEM_DEPT 部门 =======================

    String SYSTEM_DEPT_TYPE = "SYSTEM 部门";
    String SYSTEM_DEPT_CREATE_SUB_TYPE = "创建部门";
    String SYSTEM_DEPT_CREATE_SUCCESS = "创建了部门【{{#dept.name}}】";
    String SYSTEM_DEPT_UPDATE_SUB_TYPE = "更新部门";
    String SYSTEM_DEPT_UPDATE_SUCCESS = "更新了部门【{{#dept.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_DEPT_DELETE_SUB_TYPE = "删除部门";
    String SYSTEM_DEPT_DELETE_SUCCESS = "删除了部门【{{#dept.name}}】";
    // ======================= SYSTEM_SENSITIVE 敏感词 =======================

    String SYSTEM_SENSITIVE_TYPE = "SYSTEM 敏感词";
    String SYSTEM_SENSITIVE_CREATE_SUB_TYPE = "创建敏感词";
    String SYSTEM_SENSITIVE_CREATE_SUCCESS = "创建了敏感词【{{#word.name}}】";
    String SYSTEM_SENSITIVE_UPDATE_SUB_TYPE = "更新敏感词";
    String SYSTEM_SENSITIVE_UPDATE_SUCCESS = "更新了敏感词【{{#word.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_SENSITIVE_DELETE_SUB_TYPE = "删除敏感词";
    String SYSTEM_SENSITIVE_DELETE_SUCCESS = "删除了敏感词【{{#word.name}}】";
    // ======================= SYSTEM_MEMBERGROUP 会员组 =======================

    String SYSTEM_MEMBERGROUP_TYPE = "SYSTEM 会员组";
    String SYSTEM_MEMBERGROUP_CREATE_SUB_TYPE = "创建会员组";
    String SYSTEM_MEMBERGROUP_CREATE_SUCCESS = "创建了会员组【{{#memberGroup.name}}】";
    String SYSTEM_MEMBERGROUP_UPDATE_SUB_TYPE = "更新会员组";
    String SYSTEM_MEMBERGROUP_UPDATE_SUCCESS = "更新了会员组【{{#memberGroup.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_MEMBERGROUP_DELETE_SUB_TYPE = "删除会员组";
    String SYSTEM_MEMBERGROUP_DELETE_SUCCESS = "删除了会员组【{{#memberGroup.name}}】";
}
